<?=$header?>
<body>
	<?=$navigate?>
	<!-- MAIN CONTENT -->
    <div id="content">
		<?=$jspage?>
        <script>
        $(function(){
           $('#datestart').datetimepicker({value:'<?=date('Y/m/d');?> 07:00',step:10});
           $('#dateend').datetimepicker({value:'<?=date('Y/m/d');?> 15:00',step:10});
        });
        </script>
		<div class="page-full-width cf">

			<?=$sidebarleft?>
			
			<div class="side-content fr">
			
				
				<div class="content-module">
				
					<div class="content-module-heading cf">
					
						<h3 class="fl"><?=$title_page?></h3>
						<span class="fr expand-collapse-text">Click to collapse</span>
						<span class="fr expand-collapse-text initial-expand">Click to expand</span>
					
					</div> <!-- end content-module-heading -->
					
					
					<div class="content-module-main cf">
				        <?php echo form_open('product/add_category', array('method'=>'POST','id'=>'kform')); ?>
						<div class="half-size-column fl">
						
                            
							
								
									<p>
										<label for="simple-input">Title</label>
										<input type="text" id="name" name="name" class="round default-width-input" />
									</p>
									
                                    
                                    
                                    
                                    
                                    <p>
										<label for="simple-input">Note</label>
										<textarea style="height: 50px;" id="detail" name="detail" class="round full-width-textarea"></textarea>
									</p>
                                    
									
	                   
									<input type="submit" value="Save" name="submit" class="round blue ic-right-arrow" />
								</fieldset>
							
							
						
						</div> <!-- end half-size-column -->
                        <div class="half-size-column fl">
						
                            
							
								<fieldset>
									                                    
                                    
                                                       
									
								</fieldset>
							
							
						
						</div> <!-- end half-size-column -->
                        </form>
                        <?php /*
                        <div class="half-size-column fr">
				
        					<div class="content-module">
        					
        						<div class="content-module-heading cf">
        						
        							<h3 class="fl">List</h3>
        							<span class="fr expand-collapse-text">Click to collapse</span>
        							<span class="fr expand-collapse-text initial-expand" style="display: none;">Click to expand</span>
        						
        						</div> <!-- end content-module-heading -->
        						
        						
        						<div class="content-module-main cf">
        					
					
                					<table>
                					
                						<thead>
                					
                							<tr>
                								<th style="width: 10em;">Title</th>
                								<th>Staff</th>
                                                <th>Date</th>
                                                <th>action</th>
                							</tr>
                						
                						</thead>
                
                						<tbody>
                                            <?php
                                                foreach($list as $k=>$item):
                                            ?>
                							<tr>
                								<td><?=$item['name']?></td>
                                                <td><?=$item['firstname'].' '.$item['lastname']?></td>
                                                <td><?=date('Y/m/d',$item['datestart'])?></td>
                								<td>
                                                    <?=anchor($this->config->item('main_url').'/product/update/'.$item['idproduct'], ' ', array('class'=>'table-actions-button ic-table-edit'));?>
                                                    <?=anchor($this->config->item('main_url').'/product/delete/'.$item['idproduct'], ' ', array('class'=>'table-actions-button ic-table-delete'));?>
                								</td>
                							</tr>
                                            <?php
                                                endforeach;
                                            ?>
                						</tbody>
                						
                					</table>
                					
                					<div class="stripe-separator"><!--  --></div>
        							
        						</div> <!-- end content-module-main -->
        						
        					</div> <!-- end content-module -->
        
        
        				</div>
				*/ ?>
					</div> <!-- end content-module-main -->
					
				</div> <!-- end content-module -->
	
				
			</div> <!-- end side-content -->
            
            <div class="side-content fr">
			
				
				<div class="content-module">
			
				<div class="content-module-heading cf">
				
					<h3 class="fl">List</h3>
					<span class="fr expand-collapse-text">Click to collapse</span>
					<span class="fr expand-collapse-text initial-expand">Click to expand</span>
				
				</div> <!-- end content-module-heading -->
				
				
				<div class="content-module-main">
				
				<form name="kform" id="kform" action="<?=$this->config->item('main_url').'/product/action'?>" method="post">	
					<table id="datatable">
					
						<thead>
					
							<tr>
								<th><input type="checkbox" id="table-select-all" onclick="checkAll();"></th>
								<th>Title</th>
                                <th>note</th>
                                <th>action</th>
							</tr>
						
						</thead>

						<tfoot>
						
							<tr>
							
								<td colspan="5" class="table-footer">
								
									<label for="table-select-actions">With selected:</label>

									<select id="table-select-actions" name="action">
										<option value="option1">Delete</option>
										<option value="option2">Export</option>
										<option value="option3">Archive</option>
									</select>
									
									<a href="javascript:void(0)" onclick="subform();" class="round button blue text-upper small-button">Apply to selected</a>	

								</td>
								
							</tr>
						
						</tfoot>
						
						<tbody>
                            <?php
                                foreach($list as $k=>$item):
                            ?>
							<tr>
								<td><input type="checkbox" value="<?=$item['idcategory']?>" name="checklist[]" id="check_box" /></td>
								<td><?=$item['name']?></td>
                                <td><?=$item['description']?></td>
								<td>
                                    <?=anchor($this->config->item('main_url').'/product/update_category/'.$item['idcategory'], ' ', array('class'=>'table-actions-button ic-table-edit'));?>
                                    <?=anchor($this->config->item('main_url').'/product/delete_category/'.$item['idcategory'], ' ', array('class'=>'table-actions-button ic-table-delete'));?>
								</td>
							</tr>
                            <?php
                                endforeach;
                            ?>
						</tbody>
						
					</table>
					</form>
					<div class="stripe-separator"><!--  --></div>
					
				</div> <!-- end content-module-main -->
			
			</div> <!-- end content-module -->
	
				
			</div> <!-- end side-content -->
		
		</div> <!-- end full-width -->
			
	</div> 
	<!-- end content -->
	
	
	
	<!-- FOOTER -->
	<?=$footer?>
    <!-- end footer -->

</body>
</html>